broadway: Be careful about destroyed surfaces
authorMatthias Clasen <mclasen@redhat.com>
Sat, 16 May 2020 17:47:18 +0000 (13:47 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 16 May 2020 17:47:18 +0000 (13:47 -0400)
commit77107f70c4fb0751653fe20a8d3de0195ff53fcc
tree94be366b6938744fecb853a8c3944a2ddfbaf250
parentb41aeabbeca3e382f661a655650049525b3f41f2
broadway: Be careful about destroyed surfaces

Just because we take a ref on a surface does not
guarantee that it is still usable a second later.
Check if its been destroyed in the meantime.

This is breaking the template tests in ci, since
there is no client behind the Broadway server.
gdk/broadway/gdksurface-broadway.c